﻿<div ng-controller="courseController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a ui-sref="app.course.list">课程管理</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" role="form" novalidate>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">课程名称</label>
            <div class="col-sm-3">
                <input type="text" name="name" class="form-control " ng-model="model.name" required ng-maxlength="50">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">课程地址</label>
            <div class="col-sm-3">
                <input type="text" name="url" class="form-control " ng-model="model.url" required>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">时长</label>
            <div class="col-sm-2">
                <input type="number" name="course_hour" class="form-control" ng-model="model.course_hour" min="0" placeholder="0" required>
            </div> <span class="col-sm-1">小时</span>
            <div class="col-sm-2">
                <input type="number" name="course_minute" class="form-control" ng-model="model.course_minute" min="0" placeholder="0" required max="60">
            </div>
            <span class="col-sm-1">  分</span>
            <div class="col-sm-2">
                <input type="number" name="course_second" class="form-control" ng-model="model.course_second" min="0" placeholder="0" required max="60">
            </div>
            <span class="col-sm-1">  秒</span>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">获得马力</label>
            <div class="col-sm-3">
                <input type="text" name="horse" class="form-control " ng-model="model.horse">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" class="btn btn-primary btn-sm" w5c-form-submit="save()" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>
</div>
